package com.jiliang.demoexcdep;

import java.util.Calendar;

public class test11 {


    public static void main(String[] args) {
        String mrmonth = "2024.12";
        String[] yearMonth = mrmonth.split("\\.");
        Integer year = Integer.valueOf(yearMonth[0]);
        Integer mouth = Integer.valueOf(yearMonth[1]);
        Calendar now = Calendar.getInstance();
        int curYear = now.get(Calendar.YEAR);
        int curMonth = now.get(Calendar.MONTH) + 1;
        System.out.println(curYear);
        System.out.println(curMonth);




    }
}
